package com.zhentao.announcements.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * @TableName announcements
 */
@ApiModel(description = "")
@TableName(value ="announcements")
@Data
public class Announcements implements Serializable {
    /**
     * 公告id
     */
    @ApiModelProperty(value = "公告id", position = 1)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 公告标题
     */
    @ApiModelProperty(value = "公告标题", position = 2)
    @TableField(value = "title")
    private String title;

    /**
     * 公告内容
     */
    @ApiModelProperty(value = "公告内容", position = 3)
    @TableField(value = "content")
    private String content;

    /**
     * 公告图片
     */
    @ApiModelProperty(value = "公告图片", position = 4)
    @TableField(value = "picture")
    private String picture;

    /**
     * 发布者id
     */
    @ApiModelProperty(value = "发布者id", position = 5)
    @TableField(value = "uid")
    private Integer uid;

    /**
     * 公告状态
     */
    @ApiModelProperty(value = "公告状态", position = 6)
    @TableField(value = "status")
    private Integer status;

    /**
     * 发布公告时间
     */
    @ApiModelProperty(value = "发布公告时间", position = 7)
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改公告时间
     */
    @ApiModelProperty(value = "修改公告时间", position = 8)
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间", position = 9)
    @TableField(value = "end_time")
    private Date endTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}